<?if($GROUP_ID$="4")?>
<?if($FLD_CUSTOM1$ || $FLD_CUSTOM2$)?>
<div style="padding-right:2px;padding-left:2px;"><div class="eTitle"><br></div></div>
 <?if($FLD_CUSTOM1$ || $FLD_CUSTOM2$)?>
 <table border="0" cellpadding="1" cellspacing="1" width="100%">
 <tbody><tr><td width="50%">$FLD_CUSTOM1$</td><td>$FLD_CUSTOM2$</td></tr>
 </tbody></table>
 <?endif?>
 <script type="text/javascript">$('#mchatC1F').hide();</script>
<?endif?><?endif?>


<?if(!$USER_LOGGED_IN$)?><div align="center"><a href="$LOGIN_LINK$">   </a></div><?else?>
<?if(!$CAN_ADD$)?><div align="center"><?if($LOGIN_LINK$)?><a href="$LOGIN_LINK$">   </a><?else?> <?endif?></div><?else?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">




<table border="0" cellpadding="1" cellspacing="1" width="100%">
<div style="float:right; padding:3px 2px 0 0;"><a href="javascript://" rel="nofollow" onclick="window.open('/mchat/0-1','mchatCtrl','scrollbars=1,width=550,height=550,left=0,top=0');return false;" title=" "><img alt="" border="0" align="absmiddle" src="/online_chat/error.png" width="13" height="13"></a></div>
<div style="padding: 3px;" id="bbcodesInChat">
<img class="bbcodeImgChat" align="absmiddle" src="/online_chat/bbcode/format-text-bold.png" onclick="bbcodeChat('b');" alt="" title="">
<img class="bbcodeImgChat" align="absmiddle" src="/online_chat/bbcode/format-text-italic.png" onclick="bbcodeChat('i');" alt="" title="">
<img class="bbcodeImgChat" align="absmiddle" src="/online_chat/bbcode/format-text-underline.png" onclick="bbcodeChat('u');" alt="" title="">
<img class="bbcodeImgChat" align="absmiddle" src="/online_chat/bbcode/script_code.png" onclick="bbcodeChat('code');" alt="" title=" ">
<img class="bbcodeImgChat" align="absmiddle" src="/online_chat/bbcode/miscellaneous2.png" onclick="bbcodeChat('spoiler');" alt="" title="">
<img class="bbcodeImgChat" align="absmiddle" src="/online_chat/bbcode/user_comment.png" onclick="bbcodeChat('quote');" alt="" title=" ">
</div>
 
 
 
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td width="95%" rowspan="2"><textarea name="mcmessage" class="mchat" id="txtchatGB" title="" onkeyup="countMessLength();" onfocus="countMessLength();" style="height:40px;width:100%;resize:none;"/></textarea></td>
</tr></table>
 
 
<div class="postbuttons-chat">
<input type="submit" value="" title=" " class="ch-b-send">
<input type="button" title=" " onclick="smilesToggleChat();" value=":)" class="ch-b-sml">
<input type="button" value="R" title="" onclick="document.getElementById('mchatIfm2').src='/mchat/?'+Math.random();" id="reloadchatbutton" class="ch-b-opt"><br>
<link type="text/css" rel="StyleSheet" href="/online_chat/style.css" />
</div>
 
<input type="hidden" name="numa" id="numa832" value="0"><input type="hidden" name="a" value="18"><input type="hidden" id="ajaxFlag" name="ajax" value="1" /></form>
<script type="text/javascript">initSel7174();</script>
 
<script type="text/javascript">
setInterval(function(){document.getElementById('mchatIfm2').src='/mchat/?'+Math.random();}, 10000);
if (gbch.getcooks('hidechatbbcodes') == "yes") $("#bbcodesInChat").hide();
setInterval(function () {var lr = gbch.TimeOfLastReload || 0,_n = gbch.pagenow || 1;if ((((new Date()).valueOf() - lr) > gbch.reloadtime) && $(".chat-block-div:visible").size() == 0) {loadPageChat(_n);if (gbch.getcooks('alertnewmessages') != "no") {$("#reNewPostsChat").show();setTimeout(function () {$("#reNewPostsChat").fadeOut("slow");},2000);}}},gbch.reloadtime);
function bbcodeChat(tg) {var o = '[' + tg + ']',c = '[/' + tg + ']',doc = $('#txtchatGB')[0];doc.focus();if (window.attachEvent && navigator.userAgent.indexOf('Opera') === -1) {var s = doc.sel;if (s) {var l = s.text.length;s.text = o + s.text + c;s.moveEnd("character", -c.length);s.moveStart("character", -l);s.select();}} else {var ss = doc.scrollTop;sel1 = doc.value.substr(0, doc.selectionStart);sel2 = doc.value.substr(doc.selectionEnd);sel = doc.value.substr(doc.selectionStart, doc.selectionEnd - doc.selectionStart);doc.value = sel1 + o + sel + c + sel2;doc.selectionStart = sel1.length + o.length;doc.selectionEnd = doc.selectionStart + sel.length;doc.scrollTop = ss;};return false;}
function smilesToggleChat() {$.get("/index/35-1-0", function (xml) {var d = $('cmd[p="content"]', xml).text(),imgs = [];$("img", d).each(function () {var onclk = $(this).parents("tr").attr("onclick").toString();onclk = onclk.split("'")[1] || onclk.split('"')[1];imgs.push('<img src="' + $(this).attr("src") + '" style="border: none; cursor: pointer;" onclick="chatsmilegb(\'' + onclk + '\');return false;">');});new _uWnd('smls', '', 400, 300, {y: $("#txtchatGB").position().top - $(window).scrollTop() - 250,x: $("#txtchatGB").position().left - $(window).scrollLeft() + 75,maxw: 400,maxh: 300,oncontent: function () {setTimeout(function () {_uWnd.getbyname('smls').checksize()},500);}},imgs.reverse().join(" "));});}
function chatsmilegb(a) {$("#txtchatGB")[0].value += " " + a + " ";$("#txtchatGB").focus();}
</script>
<input type="hidden" name="numa" id="numa832" value="0"><input type="hidden" name="a" value="18"><input type="hidden" id="ajaxFlag" name="ajax" value="1" /></form>
<script type="text/javascript">initSel7174();</script>
 
<link type="text/css" rel="StyleSheet" href="/online_chat/style.css" />

<?endif?><?endif?>